class Cat:
    def __init__(self,new_name):
        self.name = new_name

    def __del__(self):
        print('%s离开了这个完美的世界!' % self.name)

tom = Cat('Tom')

print('-' * 50)


